package org.metasketch.simulator.transformation.demo;

import org.metasketch.demo.project.DEMOProject;
import org.metasketch.simulator.transformation.PetriNetSimulationPackage;

public class Transformer {

	public static PetriNetSimulationPackage transform(DEMOProject project) {

		PetriNetSimulationPackage simulPackage = new PetriNetSimulationPackage();

		ResourceTransformer.transform(project, simulPackage.getResources());

		TransactionTransformer.transform(project, simulPackage.getResources(),
				simulPackage.getPetriNets());

		return simulPackage;

	}

}
